package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.LearnRecordDao;
import com.jinzhi.jzweb.domain.LearnRecordDO;
import com.jinzhi.jzweb.service.LearnRecordService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 学习详情记录表
 * </pre>
 * <small> 2020-02-24 21:00:11 | lance</small>
 */
@Service
public class LearnRecordServiceImpl extends CoreServiceImpl<LearnRecordDao, LearnRecordDO> implements LearnRecordService {

	@Override
	public Page<LearnRecordDO> stuRcdList(int current, int number, Long userId) {
		Page<LearnRecordDO> page = new Page<LearnRecordDO>(current , number);
		return page.setRecords(baseMapper.stuRcdList(page , userId));
	}

	@Override
	public List<Map> selLearnInfrom(Map map){
		return this.baseMapper.selLearnInfrom(map);
	}
}
